package com.projectexercise.book.model;

import com.projectexercise.book.enums.ResponseStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@AllArgsConstructor
//@NoArgsConstructor
@Data
public class PageResponse<T> {
    private List<T> records; // 图书数据
    private Integer count; // 总数据数
    private PageRequest pageRequest; // 方便分页

    public PageResponse() {
    }

    public PageResponse(List<T> records) {
        this.records = records;
    }
}
